package cn.org.authority.bean;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName Role
 * @Author swj
 * @Date 2020/9/9 19:10
 */
@Table(name = "au_role")
public class Role {

    @Id
    @Column(name = "id")
    private Integer id;

    @Column(name ="name")
    private String name;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
